#include "GBuffer.h"

namespace SEngine
{
    GBuffer::GBuffer()
    {
    }
    
    void GBuffer::AddRenderTarget(const std::string &name, std::unique_ptr<Texture2D> &&target)
    {
        m_renderTargets.emplace(name, std::move(target));
    }
    
    std::shared_ptr<Texture2D> GBuffer::operator[](const std::string &name)
    {
        return m_renderTargets.at(name);
    }
} // namespace SEngine
